import { Controller, Get } from '@nestjs/common';
import { ManagerService } from './manager.service';
import { ConfigService } from '@nestjs/config';

@Controller({
  path: 'manager',
  // version: '1'
})
export class ManagerController {
  constructor(private readonly managerService: ManagerService, private readonly configService: ConfigService) {}

  @Get()
  getManagers() {
    console.log(`获取的数据库配置：${this.configService.get('database').host}`)
    return this.managerService.getManagers();
  }
}
